//
//  NYWheel.h
//  网易彩票幸运大转盘
//
//  Created by apple on 15-5-18.
//  Copyright (c) 2015年 znycat. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol NYWheel <NSObject>

- (void)LuckyDrawViewDidFinishWidthIndex:(NSInteger)index;

@end

typedef void(^JSONBLOCK)(id result);


@interface NYWheel : UIView<UIDynamicAnimatorDelegate,UIAlertViewDelegate>

@property (nonatomic, strong)NSArray *arr;
@property (nonatomic,strong)CADisplayLink *link;
+ (instancetype)wheel;

// 提供两个方法供外界调用开始和结束动画

- (void)startRotating;
- (void)stopRotating;
- (void)getstr:(NSString *)str result:(JSONBLOCK)block ;
@property (nonatomic,assign)id<NYWheel>delegate;
@end
